package com.iaiai.cobra.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iaiai.cobra.repository.bean.UserRole;
import com.iaiai.cobra.repository.mapper.UserRoleMapper;
import com.iaiai.cobra.system.service.UserRoleService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with UserRoleServiceImpl.
 * Package: com.iaiai.cobra.system.service.impl
 * Author: iaiai
 * Create Time: 2024/7/18 21:01
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {

    public List<UserRole> queryUser(Long userId){
        return getBaseMapper().queryUser(userId);
    }

    //删除
    public void delUserRole(Long userId,Long roleId){
        getBaseMapper().delUserRole(userId,roleId);
    }

}
